package com.hue.springcloud.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StorageMapper {
    //修改库存
    @Update("update t_storage set total=total-#{count} where product_id=#{productId}")
    public void updateStorage(@Param("count") int count, @Param("productId") long productId);
}
